GtkPaned: Set orientable style classes initially
authorMatthias Clasen <mclasen@redhat.com>
Fri, 18 Jul 2014 23:38:56 +0000 (19:38 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Fri, 18 Jul 2014 23:38:56 +0000 (19:38 -0400)
This was an omission, horizontal/vertical would only be set
when the orientation is changed.

gtk/gtkpaned.c

index ae2f786bab6747fd9dff33011e9eb0260f1c2642..2855a290107f2e6166244a7097a515dd98277faf 100644 (file)
@@ -789,6 +789,8 @@ gtk_paned_init (GtkPaned *paned)
   priv->handle_pos.x = -1;
   priv->handle_pos.y = -1;
 
+  _gtk_orientable_set_style_classes (GTK_ORIENTABLE (paned));
+
   gesture = gtk_gesture_pan_new (GTK_WIDGET (paned),
                                  GTK_ORIENTATION_HORIZONTAL);
   gtk_gesture_single_set_touch_only (GTK_GESTURE_SINGLE (gesture), FALSE);